<!-- #用户管理 -->
<?php Workerman\Protocols\Http::sessionStart(); $G_MODEL_NAME =basename(__FILE__,'.php'); ?>

<div class="mod_<?php echo $G_MODEL_NAME; ?> row animated fadeInLeft">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>
                    用户管理
                </h5>
                <div class="ibox-tools">
                    
                    <button href="#" class="mod_btn_<?php echo $G_MODEL_NAME; ?> _cps_user_001 btn btn-success" data-text="添加" data-tap="add">
                        <i class="fa fa-plus"></i>
                        &nbsp;
                        <span class="bold">添加</span>
                    </button>
                    
                    <button href="#" class="mod_btn_<?php echo $G_MODEL_NAME; ?> _cps_user_002 btn btn-success" data-text="修改" data-tap="edit">
                        <i class="fa fa-pencil"></i>
                        &nbsp;
                        <span class="bold">修改</span>
                    </button>
                    
                    
                    <button href="#" class="mod_btn_<?php echo $G_MODEL_NAME; ?> _cps_user_003 btn btn-success" data-text="删除" data-tap="delete">
                        <i class="fa fa-trash-o"></i>
                        &nbsp;
                        <span class="bold">删除</span>
                    </button>
					
                    <button href="#" class="mod_btn_<?php echo $G_MODEL_NAME; ?> btn btn-success" data-text="刷新" data-tap="refresh">
                        <i class="fa fa-refresh"></i>
                        <span class="bold">刷新</span>
                    </button>
							
                </div>
            </div>
            <div class="ibox-content">
                <div class="table-responsive">
                    <table id="<?php echo $G_MODEL_NAME; ?>_list" class="table table-striped table-bordered table-hover dataTables-example"
                    cellspacing="0" width="100%">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>工号</th>
                                <th>姓名</th>
                                <th>用户名</th>
								<th>所属分部门</th>
								<th>是否副总监</th>
								<th>是否总监</th>
                                <th>角色</th>
                                <th>状态</th>
								<th>手机</th>
								<th>座机</th>
								<th>联系地址</th>
								<th>邮件地址</th>
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
							<th>ID</th>
                                <th>工号</th>
                                <th>姓名</th>
                                <th>用户名</th>
								<th>所属分部门</th>
								<th>是否副总监</th>
								<th>是否总监</th>
                                <th>角色</th>
                                <th>状态</th>
								<th>手机</th>
								<th>座机</th>
								<th>联系地址</th>
								<th>邮件地址</th>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
	
	<!-- modal dialog-->
	<div class="modal inmodal fade" id="dlg_<?php echo $G_MODEL_NAME; ?>_form" tabindex="-1" role="dialog"
	aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
			<form method="get" class="form-horizontal" id="<?php echo $G_MODEL_NAME; ?>_form">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">
							&times;
						</span>
						<span class="sr-only">
							Close
						</span>
					</button>
					<h class="modal-title">
						角色管理
					</h>
					<small class="font-bold">
						所有带*的为必填项
					</small>
				</div>
				<div class="modal-body">
					<p>
					<div class="row">
						<div class="col-sm-4 b-r">
									<input type="hidden" class="form-control" name="mod_user_input_id" value=""/>
									<div class="form-group">
										<label class="col-sm-3 control-label">工号 *</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_code"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">姓名 *</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_name"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">用户名 *</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_user"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">状态 *</label>
										<div class="col-sm-9">
											<div class="checkbox checkbox-primary">
												<input type="checkbox" checked="" name="mod_user_input_stat">
												<label>
													开启/关闭
												</label>
											</div>
										
										</div>
									</div>
									<div class="hr-line-dashed"></div>
						</div>
						<div class="col-sm-4">	
									<div class="form-group">
										<label class="col-sm-3 control-label">所属分部门 *</label>
										<div class="col-sm-9">
											<div class="input-group">
												<select data-placeholder="选择所在分部门..." class="chosen-select" style="width:190px;" tabindex="2" name="mod_user_input_department">
													<option value=""></option>
												</select>
											</div>
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">副总监和总监</label>

										<div class="col-sm-9">
											<div class="checkbox checkbox-primary">
												<input type="checkbox" checked="" name="mod_user_input_is_department_head">
												<label>
													副总监
												</label>
											</div>

											<div class="checkbox checkbox-primary">
												<input type="checkbox" checked="" name="mod_user_input_is_department_headquarters_head">
												<label>
													总监
												</label>
											</div>
										
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">角色 *</label>
										<div class="col-sm-9">
											<div class="input-group">
												<select data-placeholder="选择角色分组..." class="chosen-select" style="width:190px;" tabindex="2" name="mod_user_input_groups">
													<option value=""></option>
												</select>
											</div>
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">手机</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_mobile"></div>
									</div>
									<div class="hr-line-dashed"></div>			
									<div class="form-group">
										<label class="col-sm-3 control-label">座机</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_tel"></div>
									</div>
									<div class="hr-line-dashed"></div>												
						</div>
						<div class="col-sm-4">
									<div class="form-group">
										<label class="col-sm-3 control-label">地址</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_addr"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">邮箱</label>
										<div class="col-sm-9"><input type="text" class="form-control" name="mod_user_input_email"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-3 control-label">备注</label>
										<div class="col-sm-9"><textarea rows="6" class="form-control" name="mod_user_input_note"></textarea></div>
									</div>
									<div class="hr-line-dashed"></div>
											
						</div>
					</div>
					</p>
					
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">
						关闭
					</button>
					<a href="#" class="mod_btn_<?php echo $G_MODEL_NAME; ?>_cps_user_007"  data-text="保存" data-tap="submit">
					<button type="submit" class="btn btn-primary">
						保存
					</button>
					</a>
				</div>
				</form>	
			</div>
		</div>
	</div>
	<!-- end -->
	


	<!-- modal dialog-->
	<div class="modal inmodal fade" id="dlg_<?php echo $G_MODEL_NAME; ?>_password_setting" tabindex="-1" role="dialog"
	aria-hidden="true">
		<div class="modal-dialog modal-sm">
			<div class="modal-content">
			<form method="get" class="form-horizontal" id="<?php echo $G_MODEL_NAME; ?>_password_setting">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">
							&times;
						</span>
						<span class="sr-only">
							Close
						</span>
					</button>
					<h class="modal-title">
						设置密码
					</h>
					<small class="font-bold">
						请为用户设置密码
					</small>
				</div>
				<div class="modal-body">
					<div class="row">
						<div class="col-sm-12">
									<input type="hidden" class="form-control" name="mod_user_input_id_password_setting" value=""/>
									<div class="form-group">
										<label class="col-sm-5 control-label">密码 *</label>
										<div class="col-sm-7"><input type="password" class="form-control" name="mod_user_input_password" id="mod_user_input_password"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-5 control-label">重新输入密码 *</label>
										<div class="col-sm-7"><input type="password" class="form-control" name="mod_user_input_repassword"></div>
									</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-white" data-dismiss="modal">
						关闭
					</button>
					<button type="submit" class="btn btn-primary">
						保存
					</button>
				</div>
				</form>	
			</div>
		</div>
	</div>
	<!-- end -->	

</div>




